<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>Login form</h2>
<!-- 만약에 request scope속성으로 "error_mesage"가 있다면 그 값을 출력 -->
<%
Object errorMessage = request.getAttribute("error_message");
if(errorMessage!=null){
%>
<font size = "2" color="red"><%=errorMessage %></font>	
<%} %>

<form action="/myservlet/LoginServlet" method="post">
ID : <input type="text" name="id"><br>
Password : <input type="password" name="password"><br>
	<input type="submit" value="submit">
</form>
</body>
</html>